from General.MapLoader import MapLoader


def calculate_travel_time(current_node, next_node, speed=1):
    """计算旅行时间的逻辑"""
    edge_features = MapLoader.get_edge_features(current_node, next_node)
    return edge_features['taketime'] if edge_features else float('inf')


